package com.wuqing.consumer.controller;

import com.wuqing.consumer.service.UserStudyService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;

/**
 * @author wuqing
 * @date 2020/8/6
 */
@Controller
@RequestMapping("study")
public class UserStudyController {

    @Resource
    private UserStudyService userStudyService;

    @RequestMapping("/go")
    @ResponseBody
    public String study(@RequestParam String name) {
        return userStudyService.study(name);
    }

}